<html>
<head><meta charset="utf-8"><title>implementing a new command · t-release/triagebot · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/224082-t-release/triagebot/index.html">t-release/triagebot</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/224082-t-release/triagebot/topic/implementing.20a.20new.20command.html">implementing a new command</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="231539689"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/224082-t-release/triagebot/topic/implementing%20a%20new%20command/near/231539689" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/224082-t-release/triagebot/topic/implementing.20a.20new.20command.html#231539689">(Mar 23 2021 at 20:37)</a>:</h4>
<p>Hi there! At the WG-triage meeting we thought it might be a good idea to add an <code>@rustbot blocked on #NNN</code> command. Triagebot would track in its database what issues/PRs are blocked on what other issues/PRs and would comment and remove the S-blocked label when the block ended due to closure or merge.</p>
<p>Could someone give me some general advice on how this should be implemented? I'm guessing I would a handler to <code>src/handlers/*.rs</code>, but I figured it would be a good idea to get some advice before I went ahead and implemented it.</p>
<p>Thanks!</p>



<a name="231539796"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/224082-t-release/triagebot/topic/implementing%20a%20new%20command/near/231539796" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/224082-t-release/triagebot/topic/implementing.20a.20new.20command.html#231539796">(Mar 23 2021 at 20:37)</a>:</h4>
<p>Yeah, a handler that parses it and stores into db, and then on issue/pr merge looks up in db and updates labels feels right</p>



<a name="231541443"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/224082-t-release/triagebot/topic/implementing%20a%20new%20command/near/231541443" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/224082-t-release/triagebot/topic/implementing.20a.20new.20command.html#231541443">(Mar 23 2021 at 20:49)</a>:</h4>
<p>Okay, thanks! I'll attempt an implementation sometime soon and probably will ask more questions here if I get stuck.</p>



<a name="245622641"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/224082-t-release/triagebot/topic/implementing%20a%20new%20command/near/245622641" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/224082-t-release/triagebot/topic/implementing.20a.20new.20command.html#245622641">(Jul 11 2021 at 19:24)</a>:</h4>
<p>I've started working on this again, currently on the DB part. I'm recording issues/PRs as three fields: org + repo + number. Is there a better way to do it, or is this good?</p>



<a name="245623410"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/224082-t-release/triagebot/topic/implementing%20a%20new%20command/near/245623410" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/224082-t-release/triagebot/topic/implementing.20a.20new.20command.html#245623410">(Jul 11 2021 at 19:46)</a>:</h4>
<p>that's what I'd do, I think</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>